package com.youlai.boot.system.model.form;

import java.io.Serial;
import java.io.Serializable;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;
import java.util.List;

import jakarta.validation.constraints.*;

/**
 * 机构管理表单对象
 *
 * @author youlaitech
 * @since 2025-02-22 15:45
 */
@Getter
@Setter
@Schema(description = "机构管理表单对象")
public class OrgForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "机构表主键")
    private Long id;

    @Schema(description = "原所属用户")
    private Long oldUserId;

    @Schema(description = "所属用户")
    private Long userId;

    private String username;

    @Size(max = 255, message = "长度不能超过255个字符")
    private String orgName;

    @Schema(description = "机构地址")
    @Size(max = 255, message = "机构地址长度不能超过255个字符")
    private String address;

    @Schema(description = "联系方式")
    @Size(max = 255, message = "联系方式长度不能超过255个字符")
    private String contact;

    @Schema(description = "资质证明文件")
    private List<String> certification;

    @Schema(description = "审核状态")
    private Integer status;

    private LocalDateTime createTime;

    private Long createBy;

    private LocalDateTime updateTime;

    private Long updateBy;


}
